<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客管理</title>
    <script src="/resources/scripts/jquery-3.2.1.min.js"></script>
</head>
<body>
    <div class="container">
        <img class="background" src="/resources/images/bg.svg" alt="">
        <div class="header">
            <div class="to-back">
                <img src="/resources/images/avatar.svg" alt="">
            </div>
            <div class="title">
                <span>博客管理</span>
            </div>
            <div class="search">
                <img src="/resources/images/search.svg" alt="">
            </div>
        </div>
        <hr class="split-line">
        <div class="content-box">
            <div class="article-item">
                <div class="update-time">
                    <h1 style="color: white; font-size: 22px">02/5月</h1>
                </div>
                <div class="item-box">
                    <div class="item-content">
                        <div class="image-box"><img src="/resources/images/中国宿舍.svg" alt=""></div>
                        <div class="article">
                            <h1 class="article-title">中国高校宿舍8大配置排名</h1>
                            <p class="article-text">首先我们斗志到，大学对于高中来说要宽松很多。而且进入大学后，也不仅仅只有...</p>
                        </div>
                    </div>
                    <div class="tool-box">
                        <div id="edit-button">
                            <!-- <img src="/resources/images/三点.svg" alt=""> -->
                            <div class="more">
                                <div id="delete"><img src="/resources/images/删除.svg"/><span style="color: red">删除</span></div>
                                <div id="edit"><img src="/resources/images/编辑.svg"/><span style="color: rgb(161, 89, 199)">编辑</span></div>
                            </div>
                        </div>
                        <div class="reactive">
                            <div class="good"><img src="/resources/images/点赞0.svg" alt=""><span class="number"> 6540</span></div>
                            <div class="collect"><img src="/resources/images/收藏0.svg" alt=""><span class="number"> 958</span></div>
                            <div class="comment"><img src="/resources/images/评论0.svg" alt=""><span class="number"> 755</span></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="article-item">
                <div class="update-time">
                    <h1 style="color: white; font-size: 22px">28/4月</h1>
                </div>
                <div class="item-box">
                    <div class="item-content">
                        <div class="image-box"><img src="/resources/images/school.svg" alt=""></div>
                        <div class="article">
                            <h1 class="article-title">中国高校宿舍8大配置排名</h1>
                            <p class="article-text">首先我们斗志到，大学对于高中来说要宽松很多。而且进入大学后，也不仅仅只有...</p>
                        </div>
                    </div>
                    <div class="tool-box">
                        <div><img src="/resources/images/三点.svg" alt=""></div>
                        <div class="reactive">
                            <div class="good"><img src="/resources/images/点赞0.svg" alt=""><span class="number"> 6540</span></div>
                            <div class="collect"><img src="/resources/images/收藏0.svg" alt=""><span class="number"> 958</span></div>
                            <div class="comment"><img src="/resources/images/评论0.svg" alt=""><span class="number"> 755</span></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="article-item">
                <div class="update-time">
                    <h1 style="color: white; font-size: 22px">27/4月</h1>
                </div>
                <div class="item-box">
                    <div class="item-content">
                        <div class="image-box"><img src="/resources/images/跳舞.svg" alt=""></div>
                        <div class="article">
                            <h1 class="article-title">中国高校宿舍8大配置排名</h1>
                            <p class="article-text">首先我们斗志到，大学对于高中来说要宽松很多。而且进入大学后，也不仅仅只有...</p>
                        </div>
                    </div>
                    <div class="tool-box">
                        <div> <img src="/resources/images/三点.svg" alt=""></div>
                        <div class="reactive">
                            <div class="good"><img src="/resources/images/点赞0.svg" alt=""><span class="number"> 6540</span></div>
                            <div class="collect"><img src="/resources/images/收藏0.svg" alt=""><span class="number"> 958</span></div>
                            <div class="comment"><img src="/resources/images/评论0.svg" alt=""><span class="number"> 755</span></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="bottom-nav" >
                <!-- <img id="tabs-bg"  src="../resources/images/tabs-bg.svg"/> -->
                <a href="http://127.0.0.1:5500/html/index.html" class="nav-item">
                    <span class="icon">
                        <img id="tab-home" src="/resources/images/tab-home.svg"/>
                    </span>
                </a>
                <a href="http://127.0.0.1:5500/html/blogTest.html">
                    <span class="icon">
                        <img id="tab-message"  src="/resources/images/tab-message.svg"/>
                    </span>
                </a>
                <a href="http://127.0.0.1:5500/html/zjh/blogEdit.html">
                    <span class="icon">
                        <img id="tab-publish"  src="/resources/images/tab-publish.svg"/>
                    </span>
                </a>
                <a href="http://127.0.0.1:5500/html/blogCheck.html ">
                    <span class="icon">
                        <img id="tab-search"  src="/resources/images/tab-search.svg"/>
                    </span>
                </a>
                <a href="http://127.0.0.1:5500/personalPage/index.html">
                    <span class="icon">
                        <img id="tab-user" src="/resources/images/tab-user.svg"/>
                    </span>
                </a>
            </div>
        </div>
    </div>
</body>

<style>
    body{
        width: 375px;
        height: 812px;
    }
    .container{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .background{
        position: absolute;
        z-index: -1;
        width: 375px;
        height: 812px;
    }

    .header{
        width: 90%;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .title{
        font-size: 22px;
        font-weight: lighter;;
        color: white;
        display: flex;
        flex-direction: column;
        align-self: flex-end;
    }

    .split-line{
        width: 100%;
        height: 1px;
        background-color: white;
        opacity: 0.4;
        border: none;
    }

    .content-box{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .article-item{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .item-box{
        width: 100%;
        height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }

    .item-content{
        width: 95%;
        height: 80%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .update-time{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .article-title{
        font-size: 19px;
        font-weight: light;
        color: white;
        margin-left: 10px;
    }

    .article-text{
        font-size: 17px;
        font-weight: light;
        color: white;
        margin-left: 10px;
        width: 230px;
    }

    .tool-box{
        width: 90%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .reactive{
        width: 50%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    .number{
        color: white;
        font-size: 10px;
    }

    .more {
        display: flex;
        flex-direction: row;
        height: 20px;
        width: 140px;
        align-items:center;
        justify-content: space-around;
    }
    
    #delete{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #edit{
        display: flex;
        flex-direction: row;
    }

    .footer{
        position: absolute;
        bottom: 120px;
        background-color: azure;
        z-index: 1;
        width: 375px;
        height: 8%;
        border-radius: 10px 10px 0px 0px;
    }

    .bottom-nav{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin-top: 10px;
    }

</style>

<script>
    $("#delete").on("click", function(){
        console.log("删除");
    });

    $("#edit").on("click", function(){
        console.log("编辑");
        window.location.location="blogView.html";
        $(location).attr('href','http://127.0.0.1:5500/html/zjh/blogView.html');
    });

</script>
</html>